gdbsx hacks CFLAGS to remove optimisations for easier debugging, however
this breaks dep generation due to an early evaluation of CFLAGS and
leaves stale files called "..d" after a make clean. We could possibly
fix this by separating dep generation from the rest of CFLAGS but it
seems a little invasive. The gdbsx hackers can do their own thing during
development and testing anyway...
Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
CFLAGS += -Werror -Wmissing-prototypes
# (gcc 4.3x and later) -Wconversion -Wno-sign-conversion
-
-# just in case have to debug gdbsx, keep life simple.
-TMPFLAGS := $(CFLAGS)
-CFLAGS := $(filter-out -O% -DNDEBUG -fomit-frame-pointer, $(TMPFLAGS))
-CFLAGS += -O0
.PHONY: clean
clean:
- rm -rf gx_all.a *.o
+ rm -rf gx_all.a *.o .*.d
#%.o: %.c $(GX_HDRS) Makefile
.PHONY: clean
clean:
- rm -rf xen xg_all.a $(XG_OBJS)
+ rm -rf xen xg_all.a $(XG_OBJS) .*.d